package com.ruoyi.project.question.compose.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 考核问卷对象 questionnaire_info
 * 
 * @author Bandit
 * @date 2021-12-14
 */
public class QuestionnaireInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷id */
    private Long id;

    /** 被评审人id */
    @Excel(name = "被评审人type")
    private Long personType;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 0 发布 1 暂存 2已结束 3已失效 */
    @Excel(name = "0 发布 1 暂存 2已结束 3已失效")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPersonType(Long personType)
    {
        this.personType = personType;
    }

    public Long getPersonType()
    {
        return personType;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personType", getPersonType())
            .append("startTime", getStartTime())
            .append("status", getStatus())
            .append("createDate", getCreateDate())
            .toString();
    }
}
